#define  _CRT_SECURE_NO_WARNINGS

#include "String.h"

void Test_increase_capacity()
{
	string s;
	size_t sz = s.capacity();
	cout << "capacity->" << sz << endl;
	for (int i = 0; i < 100; i++)
	{
		s.push_back('1');
		if (sz != s.capacity())
		{
			sz = s.capacity();
			cout << "capacity->" << sz << endl;
		}
	}
}

int main()
{
	byh::Test_string();
	//Test_increase_capacity();
	//cout << sizeof(string) << endl;

	return 0;
}